package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ywb
 * @since 2024-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ticket_check_records")
@ApiModel(value="TicketCheckRecordsEntity对象", description="")
public class TicketCheckRecordEntity implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "入场码")
    private String enterCode;

    @ApiModelProperty(value = "票号")
    private String ticketCode;

    @ApiModelProperty(value = "检票时间")
    private LocalDateTime checkTime;

    @ApiModelProperty(value = "电影开场时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "场次编码")
    private String sessionCode;

    @ApiModelProperty(value = "影厅编码")
    private String hallCode;

    @ApiModelProperty(value = "座位编码")
    private String seatCode;

    @ApiModelProperty(value = "片名")
    private String filmName;

    @ApiModelProperty(value = "厅名")
    private String hallName;

    @ApiModelProperty(value = "检票次数")
    private Integer checkCount;

    @ApiModelProperty(value = "座位行号")
    private String seatRow;

    @ApiModelProperty(value = "座位列号")
    private String seatCol;

    @ApiModelProperty(value = "影院 id")
    private Long cinemaId;

    @ApiModelProperty(value = "租户 id")
    private Long tenantId;
    
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createdAt;
    
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updatedAt;
    
    @TableField(select = false)
    @ApiModelProperty(value = "删除时间")
    @TableLogic(value = "null", delval = "now()")
    public LocalDateTime deletedAt;
}
